
//import com.alibaba.fastjson.JSON;

public class CBase {
    void run() {
        System.out.println("-------------- cbase begin ------------------");
        System.out.printf("cbase, X=%d\n", mX);

        int x = 101;
        if (x > 10) {
            System.out.println("x big");
        } else {
            System.out.println("x small");
        }

        int[] xs = { 1, 32, 5 };
        for (int i : xs) {
            System.out.printf("xs:%d\n", i);
        }

        System.out.println("-------------- cbase end ------------------");
    }

    void testJson() {
        CBase b = new CBase();
        b.mX += 2;
        CBase.msX += 22;

        // JSON.toJSONString(b);
        String s = b.toString();
        // ObjectMapper mapper = new ObjectMapper();

        // String s = JSON.toJSONString(b);

        System.out.printf("cbase tostring:%s\n", s);
    }

    int mX;
    static int msX;
}
